import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View, SafeAreaView, Platform } from 'react-native';

export default function App() {
  return (
    <SafeAreaView style={styles.container}>
      <View style={styles.content}>
        <Text style={styles.title}>Hello World! 👋</Text>
        <Text style={styles.subtitle}>欢迎使用 React Native + Expo</Text>
        <Text style={styles.description}>
          这是一个可以在 Android 13 和 iOS 模拟器上运行的应用
        </Text>
        <View style={styles.card}>
          <Text style={styles.cardText}>✅ Android 13 兼容</Text>
          <Text style={styles.cardText}>✅ iOS 模拟器支持</Text>
          <Text style={styles.cardText}>✅ React Native 0.73+</Text>
          <Text style={styles.cardText}>✅ Expo SDK 53.0.20</Text>
        </View>
      </View>
      <StatusBar style="auto" />
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#f5f5f5',
  },
  content: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
    paddingHorizontal: 20,
  },
  title: {
    fontSize: 32,
    fontWeight: 'bold',
    color: '#333',
    marginBottom: 10,
    textAlign: 'center',
  },
  subtitle: {
    fontSize: 20,
    color: '#666',
    marginBottom: 20,
    textAlign: 'center',
  },
  description: {
    fontSize: 16,
    color: '#888',
    textAlign: 'center',
    marginBottom: 30,
    lineHeight: 24,
  },
  card: {
    backgroundColor: 'white',
    borderRadius: 12,
    padding: 20,
    shadowColor: '#000',
    shadowOffset: {
      width: 0,
      height: 2,
    },
    shadowOpacity: 0.1,
    shadowRadius: 3.84,
    elevation: 5,
    width: '100%',
    maxWidth: 300,
  },
  cardText: {
    fontSize: 16,
    color: '#444',
    marginVertical: 5,
    textAlign: 'center',
  },
});
